package cn.kduck.module.user.exception;

import cn.kduck.module.user.service.User;

public class UserNotFoundException extends RuntimeException{

    private final String userName;

    public UserNotFoundException(String userName) {
        this.userName = userName;
    }

    public UserNotFoundException(String userName, String message) {
        super(message);
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }
}
